package com.os.sys.pojo;

import java.io.Serializable;

public class SysRole implements Serializable{
	private static final long serialVersionUID = 1L; 
	private RoleType roletype = new RoleType(); 
	private int roletype_id;
	private int role_index;
	private int role_id;
	private String role_name;
	private String role_comment;
	private String role_org_ids;
	private String roletype_name;
	


	public String getRole_org_ids() {
		return role_org_ids;
	}

	public void setRole_org_ids(String role_org_ids) {
		this.role_org_ids = role_org_ids;
	}

	public String getRole_comment() {
		return role_comment;
	}

	public void setRole_comment(String role_comment) {
		this.role_comment = role_comment;
	}

	public int getRole_id() {
		return role_id;
	}

	public void setRole_id(int role_id) {
		this.role_id = role_id;
	}

	public String getRole_name() {
		return role_name==null?"":role_name;
	}

	public void setRole_name(String role_name) {
		this.role_name = role_name;
	}

	public int getRole_index() {
		return role_index;
	}

	public void setRole_index(int role_index) {
		this.role_index = role_index;
	}

	public RoleType getRoletype() {
		return roletype;
	}

	public void setRoletype(RoleType roletype) {
		this.roletype = roletype;
	}
	
	/**
	 *生成相关对象
	 */
	public void genInfo(){
		//this.roletype = DaoFactory.getSysDaoFactory().getSysInfoDao().selectRoleTypeById(this.roletype_id);
	}

	public int getRoletype_id() {
		return roletype_id;
	}

	public void setRoletype_id(int roletype_id) {
		this.roletype_id = roletype_id;
	}

	public String getRoletype_name() {
		return roletype_name;
	}

	public void setRoletype_name(String roletype_name) {
		this.roletype_name = roletype_name;
	}

	@Override
	public String toString() {
		return "SysRole{" +
				"roletype=" + roletype +
				", roletype_id=" + roletype_id +
				", role_index=" + role_index +
				", role_id=" + role_id +
				", role_name='" + role_name + '\'' +
				", role_comment='" + role_comment + '\'' +
				", role_org_ids='" + role_org_ids + '\'' +
				", roletype_name='" + roletype_name + '\'' +
				'}';
	}
}
